<template>
    <div>
        <!-- <v-title title="Vue组件化"></v-title>
        <v-button @click="handleClick">点击按钮</v-button>
        <p>
            <img src="./images/image.png" style="width: 200px;">
        </p> -->
        <!-- <vlinechart :data="linechartdata"></vlinechart> -->        
        <vNetwork></vNetwork>
    </div>
</template>
<script>
import vTitle from "./title.vue";
import vButton from "./button.vue";
import vlinechart from "./linechart.vue";
import vNetwork from "./networkchart.vue";
export default {
  components: {
    vTitle,
    vButton,
    vlinechart,
    vNetwork
  },
  mounted() {
    // this.$http.post("http://127.0.0.1:5000/operation/search",{flag:"t",tablenames:"dim_fundinfo"}).then(
    //   response => {
    //     //console.log(response.data);
    //     this.networkdata=response.body;
    //     // console.log(this.networkdata)
    //     // get body data
    //     // this.someData = response.body;
    //   },
    //   response => {
    //     console.log("error");
    //   }
    // );
  },
  methods: {
    handleClick(e) {
      // console.log(e);
    }
  },
  data: function() {
    return {
      linechartdata: {
        xAxisData: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],
        series: [
          {
            name: "销量",
            type: "bar",
            data: [5, 20, 38, 10, 10, 20]
          }
        ]
      },
      tablename: ''
    };
  }
};
</script>